/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.xs_writer_detail.entity;

import com.jeeplus.modules.xs_writer.entity.XsWriter;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 作家资金明细Entity
 * @author 天竹子
 * @version 2021-07-15
 */
@Data
public class XsWriterDetail extends DataEntity<XsWriterDetail> {
	
	private static final long serialVersionUID = 1L;
	@ExcelField(title="类型(1.稿酬2.赏金)", dictType="type_c", align=2, sort=1)
	private String type;		// 类型(1.稿酬2.赏金)
	@ExcelField(title="金额", align=2, sort=2)
	private Double money;		// 金额
	@ExcelField(title="作家名称", fieldType=XsWriter.class, value="writer.name", align=2, sort=3)
	private XsWriter writer;		// 作家名称
	
	public XsWriterDetail() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}
	
	public XsWriterDetail(String id){
		super(id);
	}
}